package com.codingfly;

import cn.hutool.core.io.FileUtil;

import java.util.Set;
import java.util.HashSet;
import java.util.List;

public class Test {

    public static void main(String[] args) {
        List<String> lines = FileUtil.readLines("D:\\data\\aaa-new.txt","utf-8");
        Set<String> set = new HashSet();
        set.addAll(lines);
        System.out.println(set.size());
        System.out.println(set.size());
    }

}
